/* Template Name: Appilo Author: themexriver Version: 2.9 */ (function ($) { "use strict"; /*----- ELEMENTOR LOAD FUNCTION CALL ---*/ let elementorIconLightBox = function ($scope, $) { $scope.find('.appilo-icon-lightbox').each(function () { $(".appilo-icon-lightbox a, .apl-video-column a, .lightbox-image, .video_box, .smm-video-box").magnificPopup({ type: 'iframe', iframe: { patterns: { youtube: { index: 'youtube.com/', id: 'v=', src: 'https://www.youtube.com/embed/%id%?autoplay=1' // URL that will be set as a source for iframe. }, vimeo: { index: 'vimeo.com/', id: '/', src: '//player.vimeo.com/video/%id%?autoplay=1' }, gmaps: { index: '//maps.google.', src: '%id%&output=embed' } }, srcAction: 'iframe_src', } }); }); }; //App Showcase var ASCservices = function ($scope, $) { if ($("body.rtl").length) { var LangRtl = true; } else { var LangRtl = false; } if ($(".ei-service-slide").length) { var customPagerSlider = $(".ei-service-slide").bxSlider({ adaptiveHeight: true, controls: true, rtl: LangRtl, pause: 5000, speed: 1000, nextText: '', prevText: '', pagerCustom: "#banner-pager", }); } }; var ASCteam = function ($scope, $) { if ($("body.rtl").length) { var LangRtl = true; } else { var LangRtl = false; } $("#ei-team-slide").owlCarousel({ margin: 0, responsiveClass: true, nav: true, dots: false, loop: true, rtl: LangRtl, center: true, autoplay: false, navText: [ "", "", ], smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 2, }, 700: { items: 2, }, 1000: { items: 3, }, }, }); }; var ASCpartner = function ($scope, $) { if ($("body.rtl").length) { var LangRtl = true; } else { var LangRtl = false; } $("#ei-partner-slide").owlCarousel({ margin: 105, autoplay: true, loop: true, rtl: LangRtl, responsiveClass: true, nav: false, dots: false, slideTransition: "linear", autoplayTimeout: 10, autoplayHoverPause: false, autoplaySpeed: 4500, responsive: { 0: { items: 2, }, 400: { items: 3, }, 600: { items: 4, }, 700: { items: 4, }, 1000: { items: 4, }, }, }); }; var ASCtestimonial = function ($scope, $) { if ($("body.rtl").length) { var LangRtl = true; } else { var LangRtl = false; } $("#testimonial-scroller").owlCarousel({ margin: 105, responsiveClass: true, nav: false, dots: true, rtl: LangRtl, autoplay: false, smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 1, }, 700: { items: 1, }, 1000: { items: 2, }, }, }); }; var ASCscroller = function ($scope, $) { $("#how-workscrollbar").mCustomScrollbar({ autoHideScrollbar: true, }); }; //End //Appilo var APfeature = function ($scope, $) { if ($(".app-features-carousel").length) { $(".app-features-carousel").owlCarousel({ loop: true, margin: 30, nav: true, center: true, navText: [ '', '', ], dots: false, autoWidth: false, autoplay: true, autoplayTimeout: 5000, autoplayHoverPause: true, responsive: { 0: { items: 1, }, 480: { items: 1, }, 600: { items: 2, }, 768: { items: 2, }, 1000: { items: 3, }, }, }); } }; //Blog var APblog = function ($scope, $) { if ($(".blog-carousel").length) { $(".blog-carousel").owlCarousel({ loop: true, margin: 30, nav: true, center: true, navText: [ '', '', ], dots: false, autoWidth: false, autoplay: true, autoplayTimeout: 5000, autoplayHoverPause: true, responsive: { 0: { items: 1, }, 480: { items: 1, }, 600: { items: 2, }, 768: { items: 2, }, 1000: { items: 3, }, }, }); } }; // Testimonial var APtestimonial = function ($scope, $) { if ($(".appilo-main .testimonials-slider .slider").length) { $(".testimonials-slider .slider").bxSlider({ // adaptiveHeight: true, auto: false, controls: true, nextText: '', prevText: '', mode: "fade", pause: 3000, speed: 500, pager: true, pagerCustom: "#testimonials-slider-pager", }); } }; //Pricing var APpricing = function ($scope, $) { var toggleSwitch = $("#switch-toggle-tab label.switch"); var TabTitle = $("#switch-toggle-tab li"); var monthTabTitle = $("#switch-toggle-tab li.month"); var yearTabTitle = $("#switch-toggle-tab li.year"); var monthTabContent = $("#month"); var yearTabContent = $("#year"); // hidden show deafult; monthTabContent.fadeIn(); yearTabContent.fadeOut(); function toggleHandle() { if (toggleSwitch.hasClass("on")) { yearTabContent.fadeOut(); monthTabContent.fadeIn(); monthTabTitle.addClass("active"); yearTabTitle.removeClass("active"); } else { monthTabContent.fadeOut(); yearTabContent.fadeIn(); yearTabTitle.addClass("active"); monthTabTitle.removeClass("active"); } } monthTabTitle.on("click", function () { toggleSwitch.addClass("on").removeClass("off"); toggleHandle(); return false; }); yearTabTitle.on("click", function () { toggleSwitch.addClass("off").removeClass("on"); toggleHandle(); return false; }); toggleSwitch.on("click", function () { toggleSwitch.toggleClass("on off"); toggleHandle(); }); }; var APvideo = function ($scope, $) { if ($(".appilo-main .video-popup").length) { $(".video-popup").magnificPopup({ disableOn: 700, type: "iframe", mainClass: "mfp-fade", removalDelay: 160, preloader: true, fixedContentPos: false, }); } }; //End //Topapp var TPteam = function ($scope, $) { // Team Carousel if ($(".topapp-team-carousel").length) { $(".topapp-team-carousel").owlCarousel({ loop: true, margin: 0, nav: true, center: true, smartSpeed: 500, autoplay: 4000, navText: [ '', '', ], responsive: { 0: { items: 1, }, 480: { items: 1, }, 600: { items: 2, }, 800: { items: 3, }, 1024: { items: 3, }, }, }); } }; //Pricing var TPpricing = function ($scope, $) { if ($(".tabs-box").length) { $(".tabs-box .tab-buttons .tab-btn").on("click", function (e) { e.preventDefault(); var target = $($(this).attr("data-tab")); if ($(target).is(":visible")) { return false; } else { target .parents(".tabs-box") .find(".tab-buttons") .find(".tab-btn") .removeClass("active-btn"); $(this).addClass("active-btn"); target .parents(".tabs-box") .find(".tabs-content") .find(".tab") .fadeOut(0); target .parents(".tabs-box") .find(".tabs-content") .find(".tab") .removeClass("active-tab"); $(target).fadeIn(300); $(target).addClass("active-tab"); } }); } }; var TPbanner = function ($scope, $) { if ($(".topapp-main .banner-slider").length) { var customPagerSlider = $(".topapp-main .banner-slider").bxSlider({ adaptiveHeight: true, //auto:false, controls: true, pause: 5000, speed: 1000, nextText: '', prevText: '', pagerCustom: "#banner-pager", }); } //Banner Mobile Pager $( ".topapp-main .banner-section .carousel-column .inner-column .pager-box .pager.two" ).on("click", function () { $(".mobile-small-image").addClass("visible"); }); $( " .banner-section .carousel-column .inner-column .pager-box .pager.one" ).on("click", function () { $(".mobile-small-image").removeClass("visible"); }); $( ".banner-section .carousel-column .inner-column .pager-box .pager.three" ).on("click", function () { $(".mobile-small-image").removeClass("visible"); }); $( ".banner-section .carousel-column .inner-column .pager-box .pager.three" ).on("click", function () { $(".heart-image-icon").addClass("visible-heart"); }); $( ".banner-section .carousel-column .inner-column .pager-box .pager.one" ).on("click", function () { $(".heart-image-icon").removeClass("visible-heart"); }); $( ".banner-section .carousel-column .inner-column .pager-box .pager.two" ).on("click", function () { $(".heart-image-icon").removeClass("visible-heart"); }); $( ".topapp-main .banner-section .carousel-column .inner-column .pager-box .pager.three" ).on("click", function () { $(".plus-small-image").addClass("visible-plus"); }); $( ".topapp-main .banner-section .carousel-column .inner-column .pager-box .pager.one" ).on("click", function () { $(".plus-small-image").removeClass("visible-plus"); }); $( ".banner-section .carousel-column .inner-column .pager-box .pager.two" ).on("click", function () { $(".plus-small-image").removeClass("visible-plus"); }); }; //Galaxy //Testimonial1 var GYtestimonial1 = function ($scope, $) { if ($(".app-landing-testimonials-slider").length) { $(".app-landing-testimonials-slider").owlCarousel({ //autoplay:true, mouseDrag: false, margin: 30, smartSpeed: 300, loop: true, nav: true, navText: [ '', '', ], responsive: { 0: { items: 1, }, 992: { items: 2, }, }, }); } }; //Testimonial2 var GYtestimonial2 = function ($scope, $) { if ($(".agency-testimonial-slider").length) { $(".agency-testimonial-slider").owlCarousel({ items: 1, mouseDrag: false, smartSpeed: 300, loop: true, nav: true, navText: [ '', '', ], }); } }; //Project Slider var GYprojectslider = function ($scope, $) { if ($(".agnecy-projects-slider").length) { $(".agnecy-projects-slider").owlCarousel({ mouseDrag: false, margin: 25, smartSpeed: 300, loop: true, center: true, nav: true, navText: [ '', '', ], responsive: { 0: { items: 1, }, 500: { items: 2, center: false, }, 768: { items: 3, }, 1500: { items: 3, }, 1700: { items: 5, }, }, }); } }; var GYscreenshotslider = function ($scope, $) { if ($(".app-screenshot-slider").length) { $(".app-screenshot-slider").owlCarousel({ loop: true, margin: 50, items: 1, smartSpeed: 700, autoplay: false, nav: false, }); $(".app-screenshot-slider .owl-nav").addClass("d-none"); } }; var GYpricingtable = function ($scope, $) { if ($(".switcher-wrapper").length) { var switcher = $(".switcher-wrapper .switch"); var pricingTab = $(".pricing-tab"); var tablist = $(".switcher-wrapper .tablist"); switcher.on("click", function () { var $this = $(this); $this.find(".slider").toggleClass("slide-off"); pricingTab .children(".app-pricing-grids") .toggleClass("active-grids"); tablist.children("span").toggleClass("active"); }); } }; var GYblog = function ($scope, $) { if ($(".agency-blog-slider").length) { $(".agency-blog-slider").owlCarousel({ mouseDrag: false, margin: 25, smartSpeed: 300, loop: true, nav: true, navText: [ '', '', ], responsive: { 0: { items: 1, }, 600: { items: 2, center: false, }, 992: { items: 3, }, }, }); } }; //SaaS Classic var SCteam = function ($scope, $) { $(".s2_team_slide").owlCarousel({ margin: 30, responsiveClass: true, nav: true, dots: false, loop: false, navText: [ "", "", ], autoplay: false, smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 2, }, 700: { items: 2, }, 1000: { items: 4, }, }, }); }; //Appilo SEO //Testimonial var AStestimonial = function ($scope, $) { $("#appseo-testimonial-id").slick({ slidesToShow: 1, slidesToScroll: 1, arrows: false, fade: true, asNavFor: "#testimonial-appseo-name", }); $("#testimonial-appseo-name").slick({ slidesToShow: 3, slidesToScroll: 1, asNavFor: "#appseo-testimonial-id", dots: true, centerMode: true, focusOnSelect: true, }); }; // App Startup //Slider var STRslider = function ($scope, $) { if ($("#str-banner-slide").length) { $("#str-banner-slide").owlCarousel({ animateOut: "fadeOut", animateIn: "fadeIn", loop: true, margin: 0, nav: true, autoHeight: true, navText: [ "", "", ], smartSpeed: 500, responsive: { 0: { items: 1, }, 600: { items: 1, }, 800: { items: 1, }, 1024: { items: 1, }, 1200: { items: 1, }, }, }); } }; //Feature var STRfeature = function ($scope, $) { $("#str-slide").owlCarousel({ margin: 30, responsiveClass: true, nav: true, dots: false, loop: true, autoplay: false, navText: [ "", "", ], smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 2, }, 700: { items: 3, }, 1000: { items: 4, }, }, }); }; var STRblog = function ($scope, $) { $("#str-blog-slide").owlCarousel({ margin: 30, responsiveClass: true, nav: false, dots: true, autoplay: false, smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 1, }, 700: { items: 2, }, 1000: { items: 3, }, }, }); }; var STRportfolio = function ($scope, $) { $("#str-protfolio-slide").owlCarousel({ margin: 30, responsiveClass: true, nav: true, dots: false, loop: true, center: true, autoplay: false, navText: [ "", "", ], smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 1, }, 700: { items: 1, }, 1000: { items: 2, }, }, }); }; var STRteam = function ($scope, $) { $("#str-team-slide").owlCarousel({ margin: 30, responsiveClass: true, nav: true, dots: false, loop: true, autoplay: false, navText: [ "", "", ], smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 2, }, 700: { items: 3, }, 1000: { items: 4, }, }, }); }; //Progress var STRpro = function ($scope, $) { $("#progress1").barfiller({duration: 3000}); $("#progress2").barfiller({duration: 3000}); $("#progress3").barfiller({duration: 3000}); if ($(".fill").length) { var $progress_bar = $(".fill"); $progress_bar.appear(); $(document.body).on("appear", ".fill", function () { var current_item = $(this); if (!current_item.hasClass("appeared")) { var percent = current_item.data("percent"); } }); } }; //Digital Agency //Portfolio var DiaPortSlider = function ($scope, $) { if ($("body.rtl").length) { var LangRtl = true; } else { var LangRtl = false; } $("#dia-portfolio-slider").owlCarousel({ margin: 20, responsiveClass: true, nav: true, dots: false, loop: true, rtl: LangRtl, autoplay: false, navText: [ "", "", ], smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 2, }, 700: { items: 2, }, 1000: { items: 3, }, 1300: { items: 4, }, 1600: { items: 5, }, }, }); }; // Skill Bar var SkillProgress = function ($scope, $) { if ($(".progress-bar").length) { var $progress_bar = $(".progress-bar"); $progress_bar.appear(); $(document.body).on("appear", ".progress-bar", function () { var current_item = $(this); if (!current_item.hasClass("appeared")) { var percent = current_item.data("percent"); current_item .css("width", percent + "%") .addClass("appeared") .parent() .append("" + percent + "%" + ""); } }); } }; // Appilo Landing // Demo Showcase var FilterDemoShowcase = function ($scope, $) { $(".demo-section .filtr-container").imagesLoaded(function () { }); var filterizd = $(".demo-section .filtr-container"); if (filterizd.length) { filterizd.filterizr({}); $(".filtr-button").on("click", function () { $(".filtr-button.filtr-active").removeClass("filtr-active"); $(this).addClass("filtr-active"); }); } }; // Initial var AplAnimation = function ($scope, $) { $("[data-background]").each(function () { $(this).css( "background-image", "url(" + $(this).attr("data-background") + ")" ); }); AOS.init({ once: true, duration: 1000, }); if ($(".wow").length) { var wow = new WOW({ boxClass: "wow", animateClass: "animated", offset: 0, mobile: true, live: true, }); wow.init(); } $(".man-updown .elementor-image").css("animation", "man-updown 2s infinite alternate"); $(window).on("scroll", function () { if ($(window).scrollTop() > 100) { $(".appilo-sticky").addClass("app-res-sticky-menu"); } else { $(".appilo-sticky").removeClass("app-res-sticky-menu"); } }); }; //Testimonial var AplReviewSlide = function ($scope, $) { $("#ln-review-slide").owlCarousel({ margin: 30, responsiveClass: true, nav: false, dots: true, autoplay: false, smartSpeed: 500, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 2, }, 700: { items: 2, }, 1000: { items: 3, }, }, }); }; //SaaS //Feature var SaasFeature = function ($scope, $) { $("#featured_scroll").mCustomScrollbar({ axis: "x", mouseWheel: {enable: false}, advanced: {autoExpandHorizontalScroll: true}, }); $("#featured_scroll").removeClass("mCustomScrollbar"); }; //Cloud Hosting //Ch1 Info slider var Ch1InfoSlider = function ($scope, $) { if ($(".information-carousel").length) { $(".information-carousel").owlCarousel({ loop: true, autoplay: true, autoplayTimeout: 3000, margin: 30, nav: false, dots: true, scrollPerPage: true, responsive: { 0: { items: 1, nav: false, }, 600: { items: 2, nav: false, }, 1000: { items: 3, }, }, }); } }; //Ch1 Testimonial slider var Ch1TestSlider = function ($scope, $) { if ($(".review-carousel").length) { $(".review-carousel").owlCarousel({ loop: true, autoplay: false, margin: 30, nav: false, responsive: { 0: { items: 1, nav: false, }, 600: { items: 1, nav: false, }, 1000: { items: 2, }, }, }); } if ($("#testimonial-carousel-two").length) { $("#testimonial-carousel-two").owlCarousel({ loop: true, autoplay: false, margin: 30, nav: false, responsive: { 0: { items: 1, nav: false, }, 600: { items: 1, nav: false, }, 1000: { items: 2, }, }, }); } }; var Hrmposts = function ($scope, $) { $(".pm-blog-section .pm-blog-img-text:nth-child(2)").addClass("active"); }; var CRMScroller = function ($scope, $) { $("#crm-about-scroll").mCustomScrollbar({ autoHideScrollbar: true, }); }; var CRMScreenSlider = function ($scope, $) { $("#crm-screen-slider").owlCarousel({ margin: 0, items: 1, loop: true, nav: true, dots: false, autoplay: true, animateOut: "zoomOut", animateIn: "zoomIn", transitionStyle: "goDown", navText: [ "", "", ], }); }; var CRMTestimonialSlider = function ($scope, $) { $("#crm-testimonial-id").owlCarousel({ margin: 0, items: 1, loop: true, nav: true, dots: false, autoplay: true, navText: [ "", "", ], }); }; var SMMTestimonialSlider = function ($scope, $) { $("#smm-testimonial-id").owlCarousel({ margin: 0, items: 1, loop: true, nav: true, animateOut: "slideOutUp", animateIn: "slideInUp", dots: true, navText: [ "", "", ], }); }; var SMMfilter = function ($scope, $) { $(".smm-case-study-section .filtr-container").imagesLoaded( function () { } ); var filterizd = $(".smm-case-study-section .filtr-container"); if (filterizd.length) { filterizd.filterizr({}); $(".filtr-button").on("click", function () { $(".filtr-button.active").removeClass("active"); $(this).addClass("active"); }); } }; var SmmSkillProgress = function ($scope, $) { if ($(".progress-bar").length) { var $progress_bar = $(".progress-bar"); $progress_bar.appear(); $(document.body).on("appear", ".progress-bar", function () { var current_item = $(this); if (!current_item.hasClass("appeared")) { var percent = current_item.data("percent"); current_item .css("width", percent + "%") .addClass("appeared") .parent() .append("" + percent + "%" + ""); } }); } if ($(".smm-video-box").length) { $(".smm-video-box").fancybox({ openEffect: "fade", closeEffect: "fade", helpers: { media: {}, }, }); } }; var SMMSideInnerE = function ($scope, $) { $('.smm-side-toggle-btn').on("click", function () { $('.smm-sidebar-inner').toggleClass('wide_side_on'); $('body').toggleClass('body_overlay_on'); }); }; var SMMMemberSocialE = function ($scope, $) { $(".smm-team-img").on("click", function () { if ($(this).hasClass("social-show")) { $(this).removeClass("social-show"); } else { $(".smm-team-img.social-show").removeClass("social-show"); $(this).addClass("social-show"); } }); }; var Cybtestimonial = function ($scope, $) { $("#cyb-testimonial-id").owlCarousel({ margin: 30, responsiveClass: true, nav: false, dots: true, loop: true, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 1, }, 700: { items: 2, }, 1000: { items: 3, }, 1300: { items: 3, }, 1900: { items: 3, }, }, }); }; var emtestimonial = function ($scope, $) { $("#em-testimonial-slide-id").owlCarousel({ items: 1, loop: true, nav: false, dots: true, autoplay: true, }); if ($(".video_box").length) { $(".video_box").fancybox({ openEffect: "fade", closeEffect: "fade", helpers: { media: {}, }, }); } }; var WebTestimonial = function ($scope, $) { $("#web-app-testimoial-slide").owlCarousel({ items: 1, loop: true, nav: false, dots: true, autoplay: true, }); }; var CircleCounter = function ($scope, $) { if ($(".count-box").length) { $(".count-box").appear_c( function () { var $t = $(this), n = $t.find(".count-text").attr("data-stop"), r = parseInt( $t.find(".count-text").attr("data-speed"), 10 ); if (!$t.hasClass("counted")) { $t.addClass("counted"); $({ countNum: $t.find(".count-text").text(), }).animate( { countNum: n, }, { duration: r, easing: "linear", step: function () { $t.find(".count-text").text( Math.floor(this.countNum) ); }, complete: function () { $t.find(".count-text").text(this.countNum); }, } ); } }, {accY: 0} ); } if ($(".dial").length) { $(".dial").appear_c( function () { var elm = $(this); var color = elm.attr("data-fgColor"); var perc = elm.attr("value"); var thickness = elm.attr("thickness"); elm.knob({ value: 0, min: 0, max: 100, skin: "tron", readOnly: true, thickness: thickness, dynamicDraw: true, displayInput: false, }); $({value: 0}).animate( {value: perc}, { duration: 3500, easing: "swing", progress: function () { elm.val(Math.ceil(this.value)).trigger( "change" ); }, } ); }, {accY: 0} ); } }; var Seo2Portfolio = function ($scope, $) { if ($(".seo-2-portfolio-content").length) { $(".seo-2-portfolio-content").owlCarousel({ loop: true, nav: true, margin: 30, autoplay: 0, smartSpeed: 500, navText: [ '', '', ], responsive: { 0: { items: 1, }, 480: { items: 1, }, 600: { items: 1, }, 700: { items: 2, }, 800: { items: 2, }, 900: { items: 3, }, 1024: { items: 3, }, }, }); } }; var MediService = function ($scope, $) { $(".medi-app-service-content").owlCarousel({ margin: 30, responsiveClass: true, nav: false, dots: true, loop: true, autoplay: false, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 1, }, 700: { items: 2, }, 1000: { items: 3, }, }, }); }; var MediTestimonial = function ($scope, $) { $(".app-medi-testimonial-slider").owlCarousel({ items: 1, loop: true, nav: false, dots: false, autoplay: true, navSpeed: 800, smartSpeed: 1000, }); }; var ResSlider = function ($scope, $) { if ($(".app-res-slider-area").length) { $(".app-res-slider-area").owlCarousel({ animateOut: "fadeOut", animateIn: "fadeIn", loop: true, margin: 0, nav: true, items: 1, dots: false, navText: [ "", "", ], }); } }; var ItTesti = function ($scope, $) { $(".it-up-testimonial-slider-wrap").owlCarousel({ margin: 30, responsiveClass: true, nav: false, dots: true, loop: true, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 1, }, 700: { items: 2, }, 1000: { items: 3, }, 1100: { items: 3, }, 1300: { items: 3, }, 1900: { items: 3, }, }, }); }; var ItBlog = function ($scope, $) { $(".it-up-blog-slide").owlCarousel({ margin: 30, responsiveClass: true, nav: false, dots: true, loop: true, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 1, }, 700: { items: 2, }, 1000: { items: 3, }, 1100: { items: 3, }, 1300: { items: 3, }, 1900: { items: 3, }, }, }); }; var OsaasIntro = function ($scope, $) { if ($(".app-osaas-intro-feature-carousel").length) { $(".app-osaas-intro-feature-carousel").owlCarousel({ loop: true, margin: 0, nav: true, smartSpeed: 500, autoplay: 6000, navText: [ '', '', ], responsive: { 0: { items: 1, }, 600: { items: 1, }, 800: { items: 1, }, 1024: { items: 1, }, 1200: { items: 1, }, 1500: { items: 1, }, }, }); } }; var OsaasFeature = function ($scope, $) { if ($(".app-osaas-featured-carousel").length) { $(".app-osaas-featured-carousel").owlCarousel({ loop: true, margin: 0, nav: true, smartSpeed: 500, autoplay: 6000, navText: [ '', '', ], responsive: { 0: { items: 1, }, 600: { items: 2, }, 800: { items: 3, }, 1024: { items: 3, }, 1200: { items: 4, }, 1500: { items: 5, }, 1800: { items: 6, }, }, }); } }; var OsaasPlatform = function ($scope, $) { //Tabs Box if ($(".app-osaas-tabs-box").length) { $(".app-osaas-tabs-box .tab-buttons .tab-btn").on( "click", function (e) { e.preventDefault(); var target = $($(this).attr("data-tab")); if ($(target).is(":visible")) { return false; } else { target .parents(".app-osaas-tabs-box") .find(".tab-buttons") .find(".tab-btn") .removeClass("active-btn"); $(this).addClass("active-btn"); target .parents(".app-osaas-tabs-box") .find(".tabs-content") .find(".tab") .fadeOut(0); target .parents(".app-osaas-tabs-box") .find(".tabs-content") .find(".tab") .removeClass("active-tab"); $(target).fadeIn(300); $(target).addClass("active-tab"); } } ); } }; var OsaasLightbox = function ($scope, $) { if ($(".video_box").length) { $(".video_box").fancybox({ openEffect: "fade", closeEffect: "fade", helpers: { media: {}, }, }); } }; var OsaasTeam = function ($scope, $) { if ($(".app-osaas-three-item-carousel").length) { $(".app-osaas-three-item-carousel").owlCarousel({ loop: true, margin: 30, nav: true, smartSpeed: 500, autoplay: 6000, navText: [ '', '', ], responsive: { 0: { items: 1, }, 600: { items: 2, }, 800: { items: 2, }, 1024: { items: 3, }, 1200: { items: 3, }, 1500: { items: 3, }, }, }); } }; var OsaasSearch = function ($scope, $) { if ($(".app-osaas-search-box-outer").length) { $(".app-osaas-search-box-outer").on("click", function () { $("body").addClass("search-active"); }); $(".close-search").on("click", function () { $("body").removeClass("search-active"); }); } }; var OsaasEngineers = function ($scope, $) { if ($(".app-osaas-single-item-carousel").length) { $(".app-osaas-single-item-carousel").owlCarousel({ loop: true, margin: 0, nav: true, smartSpeed: 500, autoplay: 6000, navText: [ '', '', ], responsive: { 0: { items: 1, }, 600: { items: 1, }, 800: { items: 1, }, 1024: { items: 1, }, 1200: { items: 1, }, 1500: { items: 1, }, }, }); } }; var gymtestimnial = function ($scope, $) { if ($(".app-gym-testimonial-slider").length) { $(".app-gym-testimonial-slider").owlCarousel({ margin: 8, responsiveClass: true, nav: false, dots: true, loop: true, autoplay: false, smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 2, }, 700: { items: 2, }, 900: { items: 3, }, 1000: { items: 3, }, }, }); } }; // Landing 2 Review Slider var Appl2testimnial = function ($scope, $) { $(".apl-review-slider").slick({ slidesToShow: 1, autoplay: false, speed: 1000, prevArrow: '', nextArrow: '', }); }; // Landing 2 Filter var Appl2filtr = function ($scope, $) { $(".apl-demo-preview .filter-container").imagesLoaded(function () { }); var e = $(".apl-demo-preview .filter-container"); e.length && (e.filterizr({}), $(".apl-filter-btn").on("click", function () { $(".apl-filter-btn.apl-active").removeClass("apl-active"), $(this).addClass("apl-active"); })); $(".apl-btns-container").each(function () { $(this).children("a:last-child").hover(function () { $(this).parent().children("a:first-child").addClass("active"); }); $(this).children("a:last-child").mouseout(function () { $(this).parent().children("a:first-child").removeClass("active"); }); }) }; // Landing 2 Countdown let Appl2countdown = function ($scope, $) { $('.apl-countdown').find('ul').each(function () { var timedate = $('.appl2-countdown-date').data('date'); $('.apl-countdown ul').downCount({ date: timedate, offset: +6 }); }); }; // Landing 2 Gallery let Appl2gallery = function ($scope, $) { $(".apl-gallery-slider").slick({ autoplay: true, arrows: false, slidesToShow: 3, dots: true, speed: 2000, responsive: [ { breakpoint: 1024, settings: { slidesToShow: 2, } }, { breakpoint: 768, settings: { slidesToShow: 1, } } ] }); }; // Prysm Team let prysmTeam = function ($scope, $) { $scope.find('.pr1-team-section').each(function () { $(".pr1-team-slider").slick({ slidesToShow: 3, arrows: false, dots: true, autoplay: true, speed: 500, responsive: [ { breakpoint: 1160, settings: { slidesToShow: 2, } }, { breakpoint: 768, settings: { slidesToShow: 1, } }, ] }); }); }; // Prysm Testimonial let prysmTestimonial = function ($scope, $) { $scope.find('.pr1-testimonial-section').each(function () { $(".pr1-clients-slider").slick({ slidesToShow: 2, arrows: false, dots: true, responsive: [ { breakpoint: 768, settings: { slidesToShow: 1, } } ] }); }); }; // iTsoruce Testimonial let itSourceTestimonial = function ($scope, $) { $scope.find('.it-nx-testimonial-content').each(function () { if ($('.it-nx-testimonial-slider').length) { $('.it-nx-testimonial-slider').owlCarousel({ margin: 30, responsiveClass: true, nav: false, dots: true, autoplay: false, smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 1, }, 700: { items: 1, }, 1000: { items: 2, } }, }) } }); }; // iTsoruce Blog let itSourceBlog = function ($scope, $) { $scope.find('.it-nw-blog-content').each(function () { if ($('.it-nw-blog-slider').length) { $('.it-nw-blog-slider').owlCarousel({ margin: 30, responsiveClass: true, nav: false, dots: true, autoplay: false, smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 1, }, 700: { items: 1, }, 1000: { items: 2, } }, }) } }); }; // itsource portfolio let itSourcePortfolio = function ($scope, $) { $scope.find('.it-nw-project-content').each(function () { if ($('.it-nw-project-slider-area').length) { $('.it-nw-project-slider-area').owlCarousel({ margin: 30, responsiveClass: true, nav: true, dots: false, loop: true, center: true, autoplay: false, navText: ["", ""], smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 1, }, 700: { items: 2, }, 1000: { items: 2, } }, }) } }); }; // itsource video Lightbox let itSourceVideoLightBox = function ($scope, $) { $scope.find('.it-nw-why-choose-video-play').each(function () { jQuery('.video_box').magnificPopup({ disableOn: 200, type: 'iframe', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false, }); }); }; // Digital Marketing Counterup let digitalMarketingCounterUp = function ($scope, $) { $scope.find('.counter123').each(function () { $('.counter123').counterUp({ delay: 10, time: 1500 }); }); }; // Digital Marketing Testimonial let digitalMarketingTestimonial = function ($scope, $) { $scope.find('.app-dm-testimonial-content').each(function () { $('.app-dm-testimonial-slider').owlCarousel({ margin: 30, responsiveClass: true, nav: false, dots: true, loop: true, autoplay: false, smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 2, }, 700: { items: 2, }, 900: { items: 2, }, 1000: { items: 3, } }, }); }); }; // Digital Marketing Blog let digitalMarketingBlog = function ($scope, $) { $scope.find('.app-dm-blog-slider').each(function () { $('.app-dm-blog-slider').owlCarousel({ margin: 30, responsiveClass: true, nav: false, dots: true, loop: true, autoplay: false, smartSpeed: 1000, responsive: { 0: { items: 1, }, 400: { items: 1, }, 600: { items: 2, }, 700: { items: 2, }, 900: { items: 3, }, 1000: { items: 3, } }, }); }); }; // Digital Marketing Project slider let digitalMarketingProjectSlider = function ($scope, $) { $scope.find('.app-dm-project-tab-slider-content').each(function () { $('.app-dm-project-slider-area').slick({ arrow: false, dots: true, infinite: false, slidesToShow: 1, slidesToScroll: 1, }); }); }; // Digital Marketing Project Nav Tab let digitalMarketingProjectNavTab = function ($scope, $) { $scope.find('.app-dm-project-tab-slider-content').each(function () { $('.nav-tabs a[data-toggle="tab"]').on('shown.bs.tab', function (e) { e.target e.relatedTarget $('.app-dm-project-slider-area').slick('setPosition'); }); }); }; // Scrol Top let scrolTop2 = function ($scope, $) { $scope.find('.scrollup2').each(function () { $(window).on("scroll", function () { if ($(this).scrollTop() > 200) { $('.scrollup2').fadeIn(); } else { $('.scrollup2').fadeOut(); } }); $('.scrollup2').on("click", function () { $("html, body").animate({ scrollTop: 0 }, 800); return false; }); }); }; // Business Expert About Countdown let APBCCounterup = function ($scope, $) { $scope.find('.apbc-counterup').each(function () { $(".apbc-counterup").counterUp({ time: 1800, }); }); }; // Business Expert Number Countdown let APBCNumberCounterup = function ($scope, $) { $scope.find('.apbc-video-content').each(function () { $(".apbc-counterup").counterUp({ time: 1800, }); }); }; // Business Expert Service Slider let APBCServiceSlider = function ($scope, $) { $scope.find('.apbc-service-slider').each(function () { $(".apbc-service-slider").slick({ slidesToShow: 3, autoplay: true, dots: true, responsive: [ { breakpoint: 992, settings: { slidesToShow: 2, } }, { breakpoint: 700, settings: { slidesToShow: 1, } } ] }); }); }; // Business Expert Team let APBCTeamCarousel = function ($scope, $) { $scope.find('.apbc-team-carousel').each(function () { $(".apbc-team-carousel").slick({ slidesToShow: 4, autoplay: true, dots: true, arrows: false, responsive: [ { breakpoint: 900, settings: { slidesToShow: 3, } }, { breakpoint: 700, settings: { slidesToShow: 2, } }, { breakpoint: 460, settings: { slidesToShow: 1, } } ] }); }); }; // Business Expert Testimonial let APBCFeedBack = function ($scope, $) { $scope.find('.apbc-client-feedback').each(function () { $(".apbc-client-feedback").slick({ slidesToShow: 1, prevArrow: '', nextArrow: '', autoplay: true, dots: true, }); }); }; // Business Expert Toggle let APBCToggle = function ($scope, $) { $scope.find('.apbc-sidebar-btn').each(function () { //SideBar $(".apbc-sidebar-btn a").on("click", function (e) { e.preventDefault(); $(".apbc-body-overlay").addClass("apbc-body-overlay-on"); $(".apbc_sidebar_info_content").addClass("apbc-sidebar-on"); }); $(".apbc-body-overlay").on("click", function () { $(".apbc_sidebar_info_content").removeClass("apbc-sidebar-on"); $(this).removeClass("apbc-body-overlay-on"); }); $(".apbc-sidebar-info .close-menu").on("click", function () { $(".apbc_sidebar_info_content").removeClass("apbc-sidebar-on"); $(".apbc-body-overlay").removeClass("apbc-body-overlay-on"); }); }); }; // Business Expert Slider let APBCHeroSlider = function ($scope, $) { $scope.find('.apbc-hero-slider').each(function () { $(".apbc-hero-slider").slick({ slidesToShow: 1, autoplaySpeed: 6000, autoplay: true, arrows: false, dots: true, }); }); }; // Seo Agency Slider let seoAgencySlider = function ($scope, $) { $scope.find('.apldg2-hero-slider').each(function () { $(".apldg2-hero-slider").slick({ slidesToShow: 1, autoplay: false, dots: true, arrows: false, }); }); }; // Seo Agency progress bar let seoAgencyProgressBar = function ($scope, $) { $scope.find('.progress-bar-seo-agency').each(function () { $(".progress-bar-seo-agency").ProgressBar(); }); }; // Seo Agency Counter Up let seoAgencyCounterUp = function ($scope, $) { $scope.find('.apldg2-achivement-right').each(function () { $(".counterup").counterUp({ delay: 10, time: 1000 }); }); }; // Seo Agency Service Slider let seoAgencyServiceSlider = function ($scope, $) { $scope.find('.apldg2-services-slider').each(function () { $(".apldg2-services-slider").slick({ slidesToShow: 4, autoplay: true, dots: true, arrows: false, slidesToScroll: 2, responsive: [ { breakpoint: 992, settings: { slidesToShow: 3, } }, { breakpoint: 768, settings: { slidesToShow: 2, } }, { breakpoint: 576, settings: { slidesToShow: 1, } } ] }); }); }; // Seo Agency testimonial Slider let seoAgencyTestimonialSlider = function ($scope, $) { $scope.find('.apldg2-feedback-slider').each(function () { $(".apldg2-feedback-slider").slick({ slidestoShow: 1, autoplay: true, dots: false, arrows: true, prevArrow: '', nextArrow: '', }); }); }; // Seo Agency Blog Slider let seoAgencyBlogSlider = function ($scope, $) { $scope.find('.apldg2-blog-slider').each(function () { $(".apldg2-blog-slider").slick({ slidesToShow: 3, autoplay: true, arrows: false, dots: true, slidesToScroll: 2, responsive: [ { breakpoint: 1200, settings: { slidesToShow: 2, } }, { breakpoint: 768, settings: { slidesToShow: 1, } } ] }); }); }; // Seo Agency Project slider let seoAgencyProjectSlider = function ($scope, $) { $scope.find('.apldg2-project-slider').each(function () { //Project slider $(".apldg2-project-slider").each(function () { var ItemLength = $(this).children().length; if (ItemLength > 1) { $(this).slick({ slidesToShow: 2, dots: true, autoplay: true, arrows: false, responsive: [ { breakpoint: 768, settings: { slidesToShow: 1, } } ] }); } }); }); }; // Seo Agency Video Popup let seoAgencyVideoPopUp = function ($scope, $) { $scope.find('.apldg2-video-popup').each(function () { $('.apldg2-video-popup').magnificPopup({ type: 'iframe', iframe: { patterns: { youtube: { index: 'youtube.com/', id: 'v=', src: 'https://www.youtube.com/embed/%id%?autoplay=1' }, vimeo: { index: 'vimeo.com/', id: '/', src: '//player.vimeo.com/video/%id%?autoplay=1' }, gmaps: { index: '//maps.google.', src: '%id%&output=embed' } }, srcAction: 'iframe_src', } }); }); }; // Resume/CV Testimonial let resumeTestimonial = function ($scope, $) { $scope.find('.apihu-port-testimonial-slider').each(function () { $(".apihu-port-testimonial-slider").owlCarousel({ loop: true, nav: true, navText: ['', ''], margin: 30, responsive: { 0: { items: 1 }, 600: { items: 2 }, 1000: { items: 2 } } }); }); }; // Resume/CV Client Logo let resumeClientLogo = function ($scope, $) { $scope.find('.apihu-port-clients-carousel').each(function () { $(".apihu-port-clients-carousel").owlCarousel({ loop: true, nav: false, dots: false, margin: 25, responsive: { 0: { items: 1 }, 600: { items: 2 }, 1000: { items: 5 } } }); }); }; // Resume/CV Blog let resumeBlog = function ($scope, $) { $scope.find('.apihu-port-blog-carousel').each(function () { $('.apihu-port-blog-carousel').owlCarousel({ loop: true, nav: false, dots: true, margin: 30, responsive: { 0: { items: 1 }, 600: { items: 2 }, 1000: { items: 3 } } }); }); }; // Resume/CV portfolio let resumePortfolio = function ($scope, $) { $scope.find('.apihu-port-portfolio-area').each(function () { var $grid = $('.apihu-port-portfolio-grid').isotope({ itemSelector: '.apihu-port-portfolio-item' }); $('.apihu-port-portfolio-navigation').on('click', 'li', function () { var filterValue = $(this).attr('data-filter'); $grid.isotope({filter: filterValue}); }); $('.apihu-port-portfolio-navigation').on('click', 'li', function () { $(this).addClass('active').siblings().removeClass('active'); }); }); }; // Crypto Partner Slider let CrPartnerSlide = function ($scope, $) { $scope.find('.cr-partner-slide').each(function () { $('.cr-partner-slide').owlCarousel({ margin: 100, responsiveClass: true, nav: false, dots: false, loop: true, items: 5, autoplay: true, smartSpeed: 1000, responsive: { 0: { items: 2, }, 400: { items: 2, }, 600: { items: 2, }, 700: { items: 3, }, 1000: { items: 5, } }, }); }); }; // Crypto Count Down let CRcountDown = function ($scope, $) { $scope.find('.countdown_timer').each(function () { $('.countdown_timer').each(function () { $('[data-countdown]').each(function () { var $this = $(this), finalDate = $(this).data('countdown'); $this.countdown(finalDate, function (event) { var $this = $(this).html(event.strftime('' + '